﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hos.ScheduleMaster.Core.Models
{

    /// <summary>
    /// 分组
    /// </summary>
    [Table("schedulegroups")]
    public class ScheduleGroupEntity : IEntity
    {
        /// <summary>
        /// 分组id
        /// </summary>
        [Key]
        [Column("id")]
        public string Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        /// <summary>
        /// 任务名称
        /// </summary>
        [Required, MaxLength(100)]
        [Column("groupname")]

        public string GroupName { get; set; }
        /// <summary>
        /// 任务描述
        /// </summary>
        [MaxLength(500)]
        [Column("remark")]
        public string Remark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("createtime")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人id
        /// </summary>
        [Column("createuserid")]
        public int CreateUserId { get; set; }

        /// <summary>
        /// 创建人账号
        /// </summary>
        [Column("createusername")]
        [MaxLength(50)]
        public string CreateUserName { get; set; }
    }
}
